import Layout from "@/layout"

export default {
  path: '/employees',
  name: 'employees',
  component: Layout,
  children: [{
      path: '', //这里当二级路由的path什么都不写的时候 表示该路由为当前二级路由的默认路由
      component: () => import('@/views/employees'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    },

    // 不加/代表相对路径，就是相对上面的路径
    {
      path: "detail",
      component: () => import('@/views/employees/detail.vue'),
      hidden: true,
      meta: {
        title: '员工详情',
      }
    },
    {
      path: "print",
      component: () => import("@/views/employees/print.vue"),
      hidden: true,
      meta: {
        title: "打印"
      }


    }
  ]
}
